<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'taxcodes-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'code'); ?>
		<?php echo $form->textField($model,'code',array('size'=>8,'maxlength'=>8)); ?>
		<?php echo $form->error($model,'code'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'taxdesc'); ?>
		<?php echo $form->textField($model,'taxdesc',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'taxdesc'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'sales'); ?>
		<?php echo $form->textField($model,'sales'); ?>
		<?php echo $form->error($model,'sales'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'account'); ?>
		<?php echo $form->textField($model,'account',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'account'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'accountdesc'); ?>
		<?php echo $form->textField($model,'accountdesc',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'accountdesc'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'rate'); ?>
		<?php echo $form->textField($model,'rate'); ?>
		<?php echo $form->error($model,'rate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'vendor'); ?>
		<?php echo $form->textField($model,'vendor',array('size'=>4,'maxlength'=>4)); ?>
		<?php echo $form->error($model,'vendor'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'costacct'); ?>
		<?php echo $form->textField($model,'costacct',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'costacct'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'piggy'); ?>
		<?php echo $form->textField($model,'piggy'); ?>
		<?php echo $form->error($model,'piggy'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'labor1'); ?>
		<?php echo $form->textField($model,'labor1'); ?>
		<?php echo $form->error($model,'labor1'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'material1'); ?>
		<?php echo $form->textField($model,'material1'); ?>
		<?php echo $form->error($model,'material1'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'other1'); ?>
		<?php echo $form->textField($model,'other1'); ?>
		<?php echo $form->error($model,'other1'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'servagr1'); ?>
		<?php echo $form->textField($model,'servagr1'); ?>
		<?php echo $form->error($model,'servagr1'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->